LIB=	libmstore.a
CSRC=	mstore.c \
	mhash.c \

ifndef CFLAGS
	CC	= clang
	CFLAGS	= -O0 -Wall -Werror -g -I ../include # Assuming your working in this dir
endif

COBJ=	$(CSRC:.c=.o)

.PHONY: all clean

all: $(COBJ)
	ar rcs $(LIB) $(COBJ)

%.o: $(LOCALDIR)/$*.c
	$(CC) $(CFLAGS) -o $(LOCALDIR)/$@ $<

clean:
	rm -f *.a
	rm -f *.o
